package com.bdsoft.actions.noticeManage;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Notice {
    private String id;
    private String title;
    private String content;
    private Integer status = 0; // 默认草稿状态
    private String creatorId;
    private Date createTime = new Date();
    private Date updateTime = new Date();
    private Date publishTime;

    // 简化后的构造方法
    public Notice(String id, String title, String content, String creatorId) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.creatorId = creatorId;
    }
}